package com.bl.student.dao.model;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by liangweikang on 18/10/27.
 */
@Entity
@Data
@Table(name = "address")
@ApiModel(value = "AddressEntity", description = "地址")
@DynamicInsert
@DynamicUpdate
public class AddressEntity {
    @Id
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "乙方id")
    @Column(name = "partyb_id")
    private String partybId;

    @ApiModelProperty(value = "乙方姓名")
    @Column(name = "partyb_name")
    private String partybName;

    @ApiModelProperty(value = "乙方电话")
    @Column(name = "partyb_mobile")
    private String partybMobile;

    @ApiModelProperty(value = "乙方地址")
    @Column(name = "partyb_address")
    private String partybAddress;

    @ApiModelProperty(value = "创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @Column(name = "update_time")
    private Date updateTime;

}
